package cn.xinfei.xdecision.common.model.component.decisiontree;

import cn.xinfei.xdecision.common.model.BaseDO;
import cn.xinfei.xdecision.common.model.component.decisiontree.vo.DecisionTreeVersionVo;
import cn.xinfei.xdecision.common.utils.enums.enginex.ComponentStatusEnum;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@SuppressWarnings("serial")
@TableName("t_decision_tree")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class DecisionTree extends BaseDO {
    //决策树code
    private String code;
    //决策树名称
    private String name;
    //决策树描述
    private String description;
    //文件夹id
    private Long folderId;

    /**
     * @see ComponentStatusEnum
     * 决策表状态
     */
    private Integer status;
    //组织id
    private Long organId;

    @TableField(exist = false)
    private String creatorName;

    @TableField(exist = false)
    private DecisionTreeVersionVo executeVersion;
}
